// 库存管理接口
import request from "@/common/request.js";
const api = {
  finance_bill: "/finance_bill/",

};
const fiBillApi = {
  get_finance_bill(params) {
    return request({
      url: api.finance_bill,
      method: "get",
      params,
    });
  },

  finance_bill_detail(id) {
    return request({
      url: api.finance_bill + id,
      method: "get",
    });
  },

  post_finance_bill(data) {
    return request({
      url: api.finance_bill,
      method: "post",
      data,
    });
  },

  patch_finance_bill(data, id) {
    return request({
      url: api.finance_bill + id + "/",
      method: "patch",
      data,
    });
  },

  delete_finance_bill(id) {
    return request({
      url: api.finance_bill + id + "/",
      method: "delete",
    });
  },
};
export default fiBillApi;
